Skip to main content

Types

IARC0001Transaction

NameTypeRequiredDefaultDescription
authAddrstringno-The auth address if the sender has rekeyed.
msigMultisigMetadatano-Extra metadata needed when sending multisig transactions.
signersstring[]no-A list of addresses to sign with (defaults to the sender in the transaction).
stxnstringno-If this is part of a group of transactions, some of which are already signed you must also provide these signed transactions and the signers array MUST be undefined or empty, as per ARC-0001.
txnstringyes-The base64 encoded unsigned transaction.

IAVMWebClientCallbackOptions

NameTypeRequiredDefaultDescription
errorIBaseError | nullyes-If an error occured (defined as one of the errors), this will be defined. If a request was successful, this will be null.
idstringyes-A unique identifier for the response message.
methoddisable | discover | enable | post_transactions | sign_and_post_transactions | sign_transactionsyes-An enum that represents the method of the message.
resultIDisableResult | IDiscoverResult | IEnableResult | IPostTransactionsResult | ISignTransactionsResult | nullyes-If a request was successful, this will contain the details of the result, otherwise, if an error occurred, this will be null.

IAVMWebClientConfig

NameTypeRequiredDefaultDescription
debugbooleannofalseOutputs debug information to the console.

IAVMWebClientInitOptions

NameTypeRequiredDefaultDescription
debugbooleannofalseOutputs debug information to the console.

IAVMWebProviderCallbackOptions

NameTypeRequiredDefaultDescription
idstringyes-A unique identifier for the request message.
methoddisable | discover | enable | post_transactions | sign_and_post_transactions | sign_transactionsyes-An enum that represents the method of the message.
paramsIDisableParams | IDiscoverParams | IEnableParams | IPostTransactionsParams | ISignTransactionsParamsno-Parameters that were sent by the request.

IAVMWebProviderConfig

NameTypeRequiredDefaultDescription
providerIdstringyes-The ID of the provider.
debugbooleannofalseOutputs debug information to the console.

IAVMWebProviderInitOptions

NameTypeRequiredDefaultDescription
debugbooleannofalseOutputs debug information to the console.

IBaseError

NameTypeRequiredDefaultDescription
codenumberyes-The code of the error. See the error codes for more information.
messagestringyes-A human-readable error message that can be displayed to a user.
providerIdstringno-The ID of the provider that threw the error.
note

This is the basic type for an error. For specific details on errors check out the errors.

IAccount

NameTypeRequiredDefaultDescription
addressstringyes-The address of the account.
namestringno-A human-readable name for this account.

IDisableParams

NameTypeRequiredDefaultDescription
genesisHashstringno-The unique identifier for the network that is the hash of the genesis block.
providerIdstringno-The ID of the provider.
sessionIdsstring[]no-A list of specific session IDs to remove.

IDisableResult

NameTypeRequiredDefaultDescription
genesisHashstringyes-The unique identifier for the network that is the hash of the genesis block.
genesisIdstringyes-A human-readable identifier for the network.
providerIdstringyes-The ID of the provider.
sessionIdsstring[]no-A list of removed session IDs.

IDiscoverParams

NameTypeRequiredDefaultDescription
providerIdstringyes-The ID of the provider.

IDiscoverResult

NameTypeRequiredDefaultDescription
hoststringno-The domain name of the provider.
iconstringno-A URI pointing to an image.
namestringyes-A human-readable canonical name of the provider.
networksINetworkConfiguration[]yes-A list of networks available for the provider.
providerIdstringyes-The ID of the provider.

IEnableParams

NameTypeRequiredDefaultDescription
genesisHashstringno-The unique identifier for the network that is the hash of the genesis block.
providerIdstringno-The ID of the provider.

IEnableResult

NameTypeRequiredDefaultDescription
accountsIAccount[]yes-A list of accounts authorized accounts on the provider.
genesisHashstringyes-The unique identifier for the network that is the hash of the genesis block.
genesisIdstringyes-A human-readable identifier for the network.
providerIdstringyes-The ID of the provider.

INetworkConfiguration

NameTypeRequiredDefaultDescription
genesisHashstringyes-The unique identifier for the network that is the hash of the genesis block.
genesisIdstringyes-A human-readable identifier for the network.
methodsstring[]yes-A list of methods available from the provider for the chain.

IPostTransactionsParams

NameTypeRequiredDefaultDescription
providerIdstringyes-The ID of the provider.
stxnsstring[]yes-A list of base64 encoded signed transactions.

IPostTransactionsResult

NameTypeRequiredDefaultDescription
providerIdstringyes-The ID of the provider.
txnIDsstring[]yes-A list of 52-character base32 strings (without padding) corresponding the completed transaction IDs.

ISignMessageParams

NameTypeRequiredDefaultDescription
messagestringyes-A human-readable UTF-8 string to sign.
providerIdstringno-The ID of the provider.
signerstringno-The address to be used to sign the message.

ISignMessageResult

NameTypeRequiredDefaultDescription
providerIdstringyes-The ID of the provider.
signaturestringyes-A base64 encoded signature of the message signed by the private key of the intended signer.
signerstringyes-The address used to sign the message.

ISignTransactionsParams

NameTypeRequiredDefaultDescription
providerIdstringno-The ID of the provider.
txnsIARC0001Transaction[]yes-A list of transactions to be signed by providers.

ISignTransactionsResult

NameTypeRequiredDefaultDescription
providerIdstringyes-The ID of the provider.
stxns(string | null)[]yes-The list of base64 encoded signed transactions that is ready to be posted to the network. If any of the transactions were not signed by the wallet, and no stxns were supplied, then null will be in the place of the signed transaction.