Sign Info
This API can retrieve all information needed to assemble a transaction at once (gas-limit, gas-price, nonce).
Request Path
POST https://www.okx.com/api/v5/wallet/pre-transaction/sign-info
Request Parameters
Parameter | Type | Required | Description |
---|
chainIndex | String | Yes | Unique identifier for the chain |
fromAddr | String | Yes | From address |
toAddr | String | Yes | To address |
txAmount | String | No | Native token amount for the transaction, default is 0. Must include this parameter when involving mainnet coin transfer, otherwise it will affect the calculation of gas limit,passed in the smallest unit of the chain native token, such as ETH wei. |
extJson | Object | Yes | Extension parameters, used to add calldata and other information |
extJson
Parameter | Type | Required | Description |
---|
inputData | String | No | calldata |
protocol | String | No | Query for specific protocol: 1 : BRC-20 2 : ARC-20 3 : Runes 4 : ordi_nft |
Response Parameters
EVM
Parameter | Type | Description |
---|
gasLimit | String | Gas consumption |
nonce | String | Current Number, This endpoint only returns the on-chain nonce. For example, if the maximum nonce that has successfully been confirmed on-chain for the current address is 10, the result of the request will be 11. If you need the nonce from the memory pool, please refer to Get Nonce. |
gasPrice | Object | Gas consumption price |
>normal | String | Medium gas price, in wei |
>min | String | Low gas price, in wei |
>max | String | High gas price, in wei |
>supporteip1559 | Boolean | Whether supports EIP 1559 |
>eip1559Protocol | Object | EIP 1559 protocol detail |
eip1559 Protocol
Parameter | Type | Description |
---|
eip1559Protocol | Object | EIP 1559 protocol detail |
>baseFee | String | Base fee |
>proposePriorityFee | String | Medium priority fee, in wei |
>safePriorityFee | String | Low priority fee, in wei |
>fastPriorityFee | String | High priority fee, in wei |
UTXO
Parameter | Type | Description |
---|
normalFeeRate | String | Medium fee rate |
maxFeeRate | String | High fee rate |
minFeeRate | Object | Low fee rate |
inscriptionOutput | String | Inscription output size |
minOutput | String | Minimum inscription output size, in Satoshi (usually 546 Satoshi) |
normalCost | String | Single inscription transaction cost, in Satoshi |
maxCost | String | Maximum single inscription transaction cost, in Satoshi |
minCost | String | Minimum single inscription transaction cost, in Satoshi |