POST
/
transact
/
sendTransaction
curl --request POST \
  --url https://api.syndicate.io/transact/sendTransaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "args": {
    "person": {
      "age": 55,
      "name": "Person"
    }
  },
  "chainId": 80001,
  "contractAddress": "0x94f6E9c420Db1566A3c035Df291F206eBfAfC762",
  "functionSignature": "addPerson((string name, uint16 age) person))",
  "projectId": "638d1d78-d63d-4cda-9f1e-4d0799acfeee",
  "requestId": "083be671-9f3f-41c0-9377-8c33aab3b413"
}'
{
  "transactionId": "561b77ed-6e35-4248-87ef-c6af93f3bad9"
}

API Endpoint

https://api.syndicate.io/transact/sendTransaction

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
args
object | null

(Optional) The function arguments for the transaction if any. The keys are the argument names or index from the provided function signature and the values are the argument values.

chainId
integer
required

The chain ID for the network (e.g. 1 for Ethereum Mainnet, 137 for Polygon Mainnet, 80001 for Polygon Mumbai). For a complete list of chain IDs, see ChainList.

contractAddress
string
required

The contract address to send request to

functionSignature
string
required

The human readable signature to call on the contract

projectId
string
required

ID of the project you want this request to be sent from

requestId
string | null

(Optional) ID of the request. Needs to be a valid UUID. If provided, it will be saved and returned as the transactionId of the response. If not provided, we will generate one for you and return it as the transactionId.

Response

200 - application/json
transactionId
string
required