POST
/
transactions
/
custom
curl --request POST \
  --url https://protocol-sandbox.lumx.io/v2/transactions/custom \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contractAddress": "0xa7Cb3EF2e19bCAA7C765370c39d7a06ea5595D08",
  "operations": [
    {
      "functionSignature": "<string>",
      "argumentsValues": [
        "<string>"
      ],
      "messageValue": 123
    }
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending",
  "transactionHash": "<string>",
  "result": {},
  "request": {
    "operations": [
      {
        "functionSignature": "<string>",
        "argumentsValues": [
          "<string>"
        ],
        "messageValue": 123
      }
    ]
  },
  "type": "custom",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <API_KEY>.

Body

application/json
walletId
string
required

The ID of the wallet that will be used to perform the transaction.

contractAddress
string
required

The address of the contract where the transaction will occur. Can be any contract as long as it is deployed in the same blockchain used for the current project.

operations
object[]
required

An array with objects defining the operations to be executed in this transaction.

Response

202 - application/json
id
string

The ID of the transaction.

walletId
string

The ID of the wallet that performed the transaction.

status
enum<string>

The status of the transaction on the blockchain.

Available options:
pending,
success,
failed
transactionHash
string | null

The identifier of this transaction on the blockchain.

result
object
request
object

An object containing the parameters used for this transaction.

type
enum<string>

The transaction type

Available options:
custom
createdAt
string

The timestamp from when the transaction was submitted.

updatedAt
string

The timestamp from when the transaction was last updated.

completedAt
string | null

The timestamp from when the transaction was completed.