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

projectId
string
required

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

contractAddress
string
required

The contract address to send request to

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.

functionSignature
string
required

The human readable signature to call on the contract

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.

Response

200 - application/json
transactionId
string
required