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 nameField valueTypeExample

gasLimit

Gas limit, will be used for the contract call

Integer

300000

gasPrice

Gas price, will be used for the contract call (in WEI)

Integer

50000000

Polygon (MATIC)

When executing Matic transaction you can specify gasLimit or gasPrice by using chain specific fields

Field nameField valueTypeExample

gasLimit

Gas limit, will be used for the contract call

Integer

300000

gasPrice

Gas price, will be used for the contract call (in WEI)

Integer

50000000

Vechain

When executing Vechain transaction you can specify gasLimit or gasPriceCoef by using chain specific fields

Field nameField valueTypeExample

gasLimit

Gas limit, will be used for the contract call

Integer

300000

gasPriceCoef

Gas price coefficient, will be used for the contract call

Integer

1

Neo

When executing Vechain transaction you can specify networkFee, systemFee or outputsby using chain specific fields

Field nameField valueTypeExample

networkFee

Network fee used for the contract call. By default, 0.1 is used

Number

0.1

systemFee

System fee used for the contract call

Number

0.1

outputs

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

JSON

{ "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 nameField valueTypeExample

gasLimit

Gas limit, will be used for the contract call

Integer

300000

gasPrice

Gas price, will be used for the contract call (in WEI)

Integer

50000000

Hedera

When executing Hedera transaction you can specify a memo by using a chain specific field

Field nameField valueTypeExample

transactionMemo

A memo that can be used with a transaction

String

"0.0.2810009"

Examples

Execute a transfer specifying the gasPrice

POST https://api.arkane.network/api/transactions/execute

Request Body

NameTypeDescription

String

Request body

{
	"pincode": "1234",
	"transactionRequest": {

		"type": "CONTRACT_EXECUTION",
		"walletId": "adc4c08a-b8fa-4e4c-z5a2-92c87b80f174",
		"to": "0xdc71b72db51e227e65a45004ab2798d31e8934c9",
		"alias": null,
		"secretType": "ETHEREUM",
		"functionName": "transfer",
		"value": 0,
		"inputs": [{
			"type": "address",
			"value": "0x80cbb6c4342948e5be81987dce8251dbedd69138"
		}, {
			"type": "uint256",
			"value": 73680000
		}],
		"chainSpecificFields": {
			"gasLimit": "300000"
		}
	}
}

The request structure ofchainSpecificFieldsis similar for other chains and use-cases as well.

Last updated