Create signing request
Creates a signing request for a message or transaction, which can be signed via the MPCVault mobile app or the API Client Signer.
POST CreateSigningRequest
Request mpcvault.platform.v1.CreateSigningRequestRequest
type
type is the type of the signing request. It is a oneof field.
notes
notes is the transaction notes for the signing request.
vault_uuid
vault_uuid is the UUID of the vault that the signing request will be created in.
callback_client_signer_public_key
callback_client_signer_public_key is the public key of the api client signer for callback
It is used to identify the where we should send the callback to. If empty, we will show the signing request in the MPCVault mobile app for manual signing.
Note that if the signing request is created by an api wallet, this field must be set as api wallets can only be signed by the api client signer at the moment.
Response mpcvault.platform.v1.CreateSigningRequestResponse
signing_request
signing_request is the signing request that was created.
error
msg mpcvault.platform.v1.EVMSendNative
chain_id
chain_id is the chain id of the network.
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
value
value is the amount of the native token to send, denominated in wei.
gas_fee
when chain_id is a custom chain, this field is required.
nonce
nonce is the nonce of the transaction. If this field is not set, we will use the next nonce of the sender.
when chain_id is a custom chain, this field is required.
msg mpcvault.platform.v1.EVMGas
max_fee
max_fee is the maximum fee that the user is willing to pay, denominated in wei.
max_priority_fee
max_priority_fee is the maximum priority fee that the user is willing to pay for EIP-1559 transactions, denominated in wei.
leave this field empty if you do not want to use EIP-1559.
gas_limit
gas_limit is the maximum amount of gas that the tx is allowed to consume.
msg mpcvault.platform.v1.EVMSendERC20
chain_id
chain_id is the chain id of the network.
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
token_contract_address
token_contract_address is the address of the ERC20 token contract.
amount
amount is the amount of tokens to send. You should use whole integer representation. [amount * 10^decimals]
We will use the contract's decimals to convert the amount.
gas_fee
when chain_id is a custom chain, this field is required.
nonce
nonce is the nonce of the transaction. If this field is not set, we will use the next nonce of the sender.
when chain_id is a custom chain, this field is required.
msg mpcvault.platform.v1.EVMSendCustom
chain_id
chain_id is the chain id of the network.
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
value
value is the amount of the native token to send, denominated in wei.
input
gas_fee
when chain_id is a custom chain, this field is required.
nonce
nonce is the nonce of the transaction. If this field is not set, we will use the next nonce of the sender.
when chain_id is a custom chain, this field is required.
msg mpcvault.platform.v1.BTCSendNative
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
amount
amount is the amount of the native token to send, denominated in satoshi.
network_fee
network_fee is the network fee that the user is willing to pay, denominated in sat/b.
msg mpcvault.platform.v1.TronSendNative
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
value
value is the amount of the native token to send, denominated in sun.
msg mpcvault.platform.v1.TronSendTRC10
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
asset_name
asset_name identifies the token to be sent.
amount
amount is the amount of tokens to send. You should use whole integer representation. [amount * 10^decimals]
msg mpcvault.platform.v1.TronSendTRC20
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
contract_address
contract_address is the address of the token.
amount
amount is the amount of tokens to send. You should use whole integer representation. [amount * 10^decimals]
fee_limit
(optional) fee_limit is the maximum fee that the user is willing to pay, denominated in sun.
msg mpcvault.platform.v1.AptosSendNative
chain_id
please use 1 for mainnet. MPCVault does not support Aptos testnet at the moment.
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
value
value is the amount of the native token to send, denominated in octa.
gas_fee
(optional) specify the gas fee for the transaction.
msg mpcvault.platform.v1.AptosGas
max_gas_amount
(optional) max_gas_amount is the maximum gas units that the transaction can use
https://aptos.dev/concepts/gas-txn-fee/#unit-of-gas
gas_unit_price
(optional) gas_unit_price is the price that the user is willing to pay, denominated in octa.
msg mpcvault.platform.v1.AptosSendCoin
chain_id
please use 1 for mainnet. MPCVault does not support Aptos testnet at the moment.
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
coin_tag
coin_tag identifies the coin to be sent.
amount
amount is the amount of tokens to send. You should use whole integer representation. [amount * 10^decimals]
gas_fee
(optional) specify the gas fee for the transaction.
msg mpcvault.platform.v1.AptosSendCustom
chain_id
please use 1 for mainnet. MPCVault does not support Aptos testnet at the moment.
from
from is the sender wallet address. It has to be in this vault.
payload
payload can be JSON or the bcs-serialized bytes of the transaction.
gas_fee
(optional) specify the gas fee for the transaction.
msg mpcvault.platform.v1.SuiSendNative
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
value
value is the amount of the native token to send, denominated in mist.
gas_fee
(optional) specify the gas fee for the transaction.
msg mpcvault.platform.v1.SuiGas
budget
(optional) budget is the maximum fee that the user is willing to pay, denominated in mist.
price
(optional) price is the price that the user is willing to pay, denominated in mist.
msg mpcvault.platform.v1.SuiSendCoin
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
coin_tag
coin_tag identifies the coin to be sent.
amount
amount is the amount of coins to send. You should use whole integer representation. [amount * 10^decimals]
gas_fee
(optional) specify the gas fee for the transaction.
msg mpcvault.platform.v1.SuiSendCustom
from
from is the sender wallet address. It has to be in this vault.
payload
payload can be JSON or the bcs-serialized bytes of the transaction.
msg mpcvault.platform.v1.SolanaSendNative
from
from is the sender wallet address. It has to be in this vault.
to
to is the account address of the recipient.
value
value is the amount of the native token to send, denominated in lamports.
msg mpcvault.platform.v1.SolanaSendSPLToken
from
from is the sender wallet address. It has to be in this vault.
to
to is the account address of the recipient.
mint_address
mint_address is the address of the token.
amount
amount is the amount of tokens to send. You should use whole integer representation. [amount * 10^decimals]
msg mpcvault.platform.v1.EVMMessage
chain_id
from
from is the address of the sender. It has to be in this vault.
type
content
enum mpcvault.platform.v1.EVMMessage.Type
0
1
2
msg mpcvault.platform.v1.AptosMessage
from
from is the sender wallet address. It has to be in this vault.
type
content
enum mpcvault.platform.v1.AptosMessage.Type
0
1
msg mpcvault.platform.v1.SolanaMessage
from
from is the sender wallet address. It has to be in this vault.
type
content
enum mpcvault.platform.v1.SolanaMessage.Type
0
1
msg mpcvault.platform.v1.RawMessage
from
from is the wallet address of the key pair that we uses to sign the message. The wallet has to be in this vault.
We will use the key's algorithm to sign the message.
content
content is the raw message content in bytes.
ecdsa_hash_function
ecdsa_hash_function is the hash function to use for signing the message. Required if the key is ECDSA.
This field will be ignored if the key is not ECDSA.
enum mpcvault.platform.v1.ECDSAHashFunction
0
1
2
msg mpcvault.platform.v1.SuiMessage
from
from is the sender wallet address. It has to be in this vault.
type
content
enum mpcvault.platform.v1.SuiMessage.Type
0
1
msg mpcvault.platform.v1.TonSendNative
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
value
value is the amount of the native token to send, denominated in nanos.
comment
(optional) max len is 50.
msg mpcvault.platform.v1.TonSendToken
from
from is the sender wallet address. It has to be in this vault.
to
to is the address of the recipient.
mint_address
mint_address is the address of the token.
amount
amount is the amount of tokens to send. You should use whole integer representation. [amount * 10^decimals]
comment
(optional) max len is 50.
msg mpcvault.platform.v1.TonSendCustom
from
from is the sender wallet address. It has to be in this vault.
payload
payload can be JSON of the transaction. Same as ton-connect.
msg mpcvault.platform.v1.TonMessage
from
from is the sender wallet address. It has to be in this vault.
type
content
enum mpcvault.platform.v1.TonMessage.Type
0
1
msg mpcvault.platform.v1.SolanaSendCustom
from
from is the sender wallet address. It has to be in this vault.
tx_base64
max length is 5.
Last updated on