Skip to main content
POST
/
api
/
txs
/
prepare-sign
Prepare transfer signing payload
curl --request POST \
  --url https://api.walletsuite.io/api/txs/prepare-sign \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "chain": "<string>",
  "from": "<string>",
  "to": "<string>",
  "txType": "TRANSFER_NATIVE",
  "amountWei": 123,
  "amount": "<string>",
  "symbol": "<string>",
  "tokenContract": "<string>",
  "nonce": 123,
  "maxPriorityFeePerGasWei": 123,
  "priorityFeeMultiplier": 123
}
'
{
  "ok": true,
  "code": "<string>",
  "message": "<string>",
  "data": {
    "chain": "<string>",
    "from": "<string>",
    "to": "<string>",
    "valueWei": 123,
    "txType": "TRANSFER_NATIVE",
    "fee": {
      "mode": "EIP1559",
      "gasLimit": 123,
      "baseFeePerGas": 123,
      "maxPriorityFeePerGas": 123,
      "maxFeePerGas": 123,
      "gasPrice": 123,
      "el": 123,
      "rp": {
        "h": "<string>",
        "n": 123,
        "t": 123,
        "v": 123,
        "p": "<string>",
        "r": "<string>",
        "w": "<string>"
      }
    },
    "chainId": 123,
    "data": "<string>",
    "tokenContract": "<string>",
    "nonce": 123
  }
}

Authorizations

x-api-key
string
header
required

API key provided by WalletSuite team

Body

application/json
chain
string
required
from
string
required
to
string
required
txType
enum<string>
required
Available options:
TRANSFER_NATIVE,
TRANSFER_TOKEN,
CONTRACT_CREATION,
CONTRACT_CALL,
SWAP,
STAKE,
UNSTAKE,
CLAIM_REWARDS,
UNKNOWN
amountWei
integer
amount
string
symbol
string
tokenContract
string
nonce
integer
maxPriorityFeePerGasWei
integer
priorityFeeMultiplier
number<double>

Response

200 - */*

OK

ok
boolean
required
code
string
required
message
string
required
data
object