Luniverse
Searchโ€ฆ
How to Run Tx Action with DEOA
If you enter the authentication token and necessary information to the Restful API provided through Tx Action creation and call it, no separate Raw Tx is returned. Thus, as soon as you call this, you should send a request to the Blockchain.
Delegated EOA (DEOA) is an EOA in which Luniverse manages the private key required for transaction signing to automatically process the signature of the raw transaction. It is useful for you to sign repetitive transactions. The private key is encrypted and securely managed.
The ways to call API to run Tx Action with EOA and Tx Action with DEOA are the same. Depending on the Environment Account type of the address corresponding to "from", it is decided whether it returns Raw Tx within the API or Luniverse signs the transaction by using the encrypted private key and immediately run it.
Therefore, the method to run Tx Action with DEOA is the same as the process calling API that returns rawTx from EOA.
  • Create a Tx Action.
  • Receive an authentication token to run the Tx Action.
  • Call the API to run Tx Action.
curl -X POST 'https://api.luniverse.io/tx/v2.0/transactions/<YOUR_ACTION_NAME>' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"txId": "<UUID>",
"from": "<YOUR_DEOA_ADDRESS>",
"inputs": {
"<YOUR_PARAMETER_NAME>": "<YOUR_PARAMETER_VALUE>"
}
}'
txId must be newly created and input in UUID format each time.
Copy link