Broadcast the transaction to the chain, i.e., the transaction goes on the chain, making the user’s transaction information recorded on the chain effective.
POST https://www.okx.com/api/v5/waas/transaction/send-transaction
Parameter | Type | Required | Description |
---|---|---|---|
signedTx | String | Yes | The transaction string that has been signed |
chainId | String | Yes | Unique identifier of the chain |
walletId | String | Yes | Unique identifier of the wallet |
addrFrom | String | Yes | Transaction from address |
addrTo | String | Yes | Transaction to address |
txHash | String | Yes | Transaction hash |
txAmount | String | Yes | Transfer amount |
serviceCharge | String | Yes | Service charge (minimum unit of main coin) |
tokenAddress | String | Yes | Token address |
txType | String | Yes | Transaction type |
extJson | Json Object | Yes | Extended parameters |
Parameter | Type | Description |
---|---|---|
orderId | String | Unique identifier of the transaction |
curl --location --request POST 'https://www.okx.com/api/v5/waas/transaction/send-transaction' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data-raw ' {
"signedTx":"0x08b47112567534ad041bbc6fa102394773c6d8f6d634320773af4da55efa",
"walletId":"13886e05-1265-4b79-8ac3-b7ab46211001",
"addrFrom": "0x383c8208b4711256753b70729ba0cf0cda55efad",
"addrTo": "0x4ad041bbc6fa102394773c6d8f6d634320773af4",
"txHash": "0x238193be9e80e68eace3588b45d8cf4a7eae0fa3",
"txAmount": "31600000000000000",
"chainId": "1",
"serviceCharge": "4128241194000",
"tokenAddress": "0x4ad041bbc6fa102394773c6d8f6d634320773af4",
"txType": "transfer",
"extJson": {
"gasPrice": "196582914",
"gasLimit": "21000",
"nonce": "15"
}
}'
{
"code": 0,
"msg": "success",
"data": [{
"orderId":"457825047189549056"
}]
}