Sign ibc transfer
Signs an IBC transfer transaction for a given account.
- The name of the account for which the transaction is being signed.
- The authorization token from the request header.
- The input data for the Cosmos IBC transfer transaction.
The address from which the transfer is initiated.
The address to which the transfer is sent.
The amount of tokens to be transferred.
The denomination of the tokens to be transferred.
The ID of the blockchain chain.
The sequence number of the account initiating the transfer.
The account number of the account initiating the transfer.
The denomination of the fee to be paid for the transfer.
The amount of the fee to be paid for the transfer.
The gas limit for the transfer transaction.
An optional memo to include with the transfer.
The timeout height for the transfer transaction.
The source port for the IBC transfer.
The source channel for the IBC transfer.
The timeout timestamp for the IBC transfer, specified in nanoseconds.
POST //cosmos/{accountName}/sign-ibc-transfer HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 266
{
"fromAddress": "text",
"toAddress": "text",
"amount": "text",
"denom": "text",
"chainId": "text",
"sequence": 1,
"accountNumber": 1,
"feeDenom": "text",
"feeAmount": "text",
"gasLimit": 1,
"memo": "text",
"timeoutHeight": 1,
"sourcePort": "text",
"sourceChannel": "text",
"timeoutTimestamp": 1
}
A promise that resolves to a CosmosTransactionAPIResponse object containing the transaction data, success status, and a message.
{
"success": true,
"message": "text",
"data": {
"signedTx": "text",
"txHash": "text"
}
}