POST
/
api
/
v1
/
account
/
executeCall
curl --location --request POST 'https://groupos.xyz/api/v1/account/executeCall' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
    "accountAddress": "0x3a31f58294bdcB59653ea19ec651f92e8e5f4A8c",
    "call": {
      "chainId": 5,
      "toAddress": "0x7ff6363cd3A4E7f9ece98d78Dd3c862bacE2163d",
      "value": "0",
      "data": "0x"
    }
}'
{
  "success": true,
  "transactionHash": "0xd91f12278519d23987d85d538bd1907348db74ef6805d334a4beb06925bbb6a1",
  "transactionUrl": "https://polygonscan.com/tx/0xd91f12278519d23987d85d538bd1907348db74ef6805d334a4beb06925bbb6a1"
}

How to execute calls from an NFT Account

Once you have an NFT Account smart contract, you can execute any arbitrary call to another address. A call is defined by the chain you are executing on, the address you are calling, how much network token (e.g. ETH) to send, and the data to call with which is an ABI-encoded function with arguments.

Transactions are submitted such that gas is abstracted away for your users. Depending on your billing settings, the cost will be rolled up monthly to your developer account.

Body

accountAddress
string
required

The Account smart contract address to execute a call with.

call
object
required

The call parameters to execute.

Response

success
boolean

Indicates whether the call was successful.

transactionHash
string

Transaction hash for the newly created token.

transactionUrl
string

Wraps transactionHash with the appropriate network-specific URL for convenience.