Sign

Sign message

Path:

/api/v1/sign/message

Method:

Post

Content-type:

Json

Parameters:

  • wallet_index <int> wallet index

  • address <string> on-chain address

  • unsigned_message <string> message wait to be signed

Response:

  • code <int> response code

  • message <string> response message

  • data <json object>

    • signature <string> the signature

Sign Ethereum

Path:

/api/v1/sign/ethereum

Method:

Post

Content-type:

Json

Parameters:

  • wallet_index <int> wallet index

  • address <string> wallet address

  • transaction <json object>

    • chain_id <int> the chain id

    • nonce <int> nonce of this address

    • to <string> to address

    • value <string> value

    • gas_price <string> gas price

    • gas_limit <string> gas limit

    • data <string> data field

    • tx_mode <int> 1: Legacy transaction, 2: EIP2718

    • max_priority_fee_per_gas <string>

    • max_fee_per_gas <string>

Response:

  • code <int> response code

  • message <string> response message

  • data <json object>

    • signed_transaction <string>

    • signature <string> the signature

Sign Solana

Path:

/api/v1/sign/solana

Method:

Post

Content-type:

Json

Parameters:

  • wallet_index <int>

  • address <string>

  • transaction <json object>

    • Transfer <json object> optional, transfer solana

      • receipt <string> the receiver

      • value <string> the value

      • memo <string> the memo

    • Raw <json object array> optional, build raw transaction

      • recent_block_hash <string>

      • instruction <json object> an instruction to execute a program

        • program_id <string> index into the transaction keys array indicating the program account that executes this instruction

        • account_meta <json object> ordered indices into the transaction keys array indicating which accounts to pass to the program

          • account <string>

          • is_signer <bool>

          • is_read_only <bool>

        • data <string> the program input data, hex encoded bytes

Response:

  • code <int> response code

  • message <string> response message

  • data <json object>

    • signed_transaction <string>

    • signature <string> the signature

Sign Aptos

Path:

/api/v1/sign/aptos

Method:

Post

Content-type:

Json

Parameters:

  • wallet_index <int>

  • address <string>

  • transaction <json object>

    • gas_unit_price <int>

    • max_gas_amount <int>

    • sequence_number <string>

    • amount <int>

    • recipient <string>

    • chain_id <int>

    • expiration_timestamp <int>

    • payload <string> payload in Binary Canonical Serialization (BCS) format, encode into hex

Response:

  • code <int> response code

  • message <string> response message

  • data <json object>

    • signed_transaction <string>

    • signature <string> the signature

Last updated