ChainSpecificFields
Data structure for providing chain specific fields when doing a contract call or transaction execution.
Ethereum
When executing Ethereum transaction you can specify gasLimit
or gasPrice
by using chain specific fields
Field name | Field value | Type | Example |
---|---|---|---|
| Gas limit, will be used for the contract call |
| 300000 |
| Gas price, will be used for the contract call (in WEI) |
| 50000000 |
Polygon (MATIC)
When executing Matic transaction you can specify gasLimit
or gasPrice
by using chain specific fields
Field name | Field value | Type | Example |
---|---|---|---|
| Gas limit, will be used for the contract call |
| 300000 |
| Gas price, will be used for the contract call (in WEI) |
| 50000000 |
Vechain
When executing Vechain transaction you can specify gasLimit
or gasPriceCoef
by using chain specific fields
Field name | Field value | Type | Example |
---|---|---|---|
| Gas limit, will be used for the contract call |
| 300000 |
| Gas price coefficient, will be used for the contract call |
| 1 |
Neo
When executing Vechain transaction you can specify networkFee, systemFee or outputs
by using chain specific fields
Field name | Field value | Type | Example |
---|---|---|---|
| Network fee used for the contract call. By default, 0.1 is used |
| 0.1 |
| System fee used for the contract call |
| 0.1 |
| It is possible to add additional asset transfers together with a contract call by attaching additional outputs. This is a JSON object containing "to", "amount" and "assetId" with json types respectively string, number and string. If "to" is a script hash, it will be translated to a valid NEO address |
| { "to": "AKJrLM5Q…", "amount": 1, "assetId": "602c79718…" } |
Binance Smart Chain (BSC)
When executing BSC transaction you can specify gasLimit
or gasPrice
by using chain specific fields
Field name | Field value | Type | Example |
---|---|---|---|
| Gas limit, will be used for the contract call |
| 300000 |
| Gas price, will be used for the contract call (in WEI) |
| 50000000 |
Hedera
When executing Hedera transaction you can specify a memo by using a chain specific field
Field name | Field value | Type | Example |
---|---|---|---|
| A memo that can be used with a transaction |
|
|
Examples
Execute a transfer specifying the gasPrice
POST
https://api.arkane.network/api/transactions/execute
Request Body
Name | Type | Description |
---|---|---|
String |
Request body
The request structure ofchainSpecificFields
is similar for other chains and use-cases as well.
Last updated