Provider RPC
cfx_accountsโ
Get current connected accounts from wallet.
Return an array with one address when connected and an empty array when not connected or wallet is locked.
Parameters
๐ฅTryType | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
cfx_chainIdโ
Get the chainId
of current network of Fluent.
Returns a hex decimal number in string
.
Note: This rpc method is not standard. It's not providered by the fullnode.
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
cfx_getMaxGasLimitโ
Get the allowed of max gas limit of current Cofnlux network.
Returns a decimal number in string
.
Note: This rpc method is not standard. It's not providered by the fullnode.
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
cfx_getNextUsableNonceโ
first try to use txpool_nextNonce
to get a usable nonce, if failed it will fall back to cfx_getNextNonce
Parameters
๐ฅTryType | base32-user-address |
Doc | Base32 user address |
cfx_netVersionโ
Get the networkId
of current network of Fluent.
Returns a decimal number in string
.
Note: This rpc method is not standard. It's not providered by the fullnode.
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
cfx_requestAccountsโ
Request user for their account(address).
Return a promise with same result as cfx_accounts
, throw if user rejected the request.
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
cfx_sendTransactionโ
Request user to sign a transaction and broadcast it.
Return the result of cfx_sendRawTransaction
.
Note: nonce
is ignored.
Parameters
๐ฅTryType | base32-user-address |
Doc | Base32 user address |
Type | base32-address |
Doc | Base32 address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Type | base32-user-address |
Doc | Base32 user address |
Type | base32-address |
Doc | Base32 address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
cfx_signTypedData_v4โ
Request user to sign a v4 typed data message.
Return the signature.
Note: the domain in types
must be CIP23Domain
Parameters
๐ฅTryType | base32-user-address |
Doc | Base32 user address |
Type | string? |
Doc | typedDataString |
Type | dbid |
Doc | database id, positive integer |
Type | base32-user-address |
Doc | Base32 user address |
Type | string? |
Doc | typedDataString |
eth_accountsโ
No doc available
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
eth_requestAccountsโ
No doc available
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
eth_signTypedData_v4โ
No doc available
Parameters
๐ฅTryType | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | string? |
Doc | typedDataString |
Type | dbid |
Doc | database id, positive integer |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | string? |
Doc | typedDataString |
net_versionโ
Get the networkId
of current network of Fluent.
Returns a decimal number in string
.
Note: This rpc method is not standard. It's not providered by the fullnode.
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
personal_signโ
Request user to personal_sign
a message
Return the signature
Parameters
๐ฅTryType | dbid |
Doc | database id, positive integer |
Type | string? |
Doc | message string to sign |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | base32-user-address |
Doc | Base32 user address |
Type | string? |
Doc | string |
Type | string? |
Doc | message string to sign |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | base32-user-address |
Doc | Base32 user address |
Type | string? |
Doc | string |
wallet_addConfluxChainโ
Creates a confirmation asking the user to add the specified Conflux type chain to Fluent. The user may choose to switch to the chain once it has been added.
Parameters
๐ฅTryType | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | string? |
Doc | string |
Type | string? |
Doc | string |
Type | regex |
Doc | :re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/ |
Type | string |
Doc | string |
Type | = |
Doc | := no doc found |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | enum |
Doc | the hd path of this netowrk, default to the detected network type (cfx/eth), can be one of hd path dbid, hd path type "cfx"/"eth" or hd path value |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Optional | true |
Type | hd-path |
Doc | hd wallet derivation path without the last address_index, check https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#abstract for detail |
Optional | true |
Type | any |
Doc | :any no doc found |
Type | dbid |
Doc | database id, positive integer |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | string? |
Doc | string |
Type | string? |
Doc | string |
Type | regex |
Doc | :re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/ |
Type | string |
Doc | string |
Type | = |
Doc | := no doc found |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | enum |
Doc | the hd path of this netowrk, default to the detected network type (cfx/eth), can be one of hd path dbid, hd path type "cfx"/"eth" or hd path value |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Optional | true |
Type | hd-path |
Doc | hd wallet derivation path without the last address_index, check https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#abstract for detail |
Optional | true |
Type | any |
Doc | :any no doc found |
wallet_addEthereumChainโ
Creates a confirmation asking the user to add the specified chain to Fluent. The user may choose to switch to the chain once it has been added.
Parameters
๐ฅTryType | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | string? |
Doc | string |
Type | string? |
Doc | string |
Type | regex |
Doc | :re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/ |
Type | string |
Doc | string |
Type | = |
Doc | := no doc found |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | enum |
Doc | the hd path of this netowrk, default to the detected network type (cfx/eth), can be one of hd path dbid, hd path type "cfx"/"eth" or hd path value |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Optional | true |
Type | hd-path |
Doc | hd wallet derivation path without the last address_index, check https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#abstract for detail |
Optional | true |
Type | any |
Doc | :any no doc found |
Type | dbid |
Doc | database id, positive integer |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | string? |
Doc | string |
Type | string? |
Doc | string |
Type | regex |
Doc | :re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/ |
Type | string |
Doc | string |
Type | = |
Doc | := no doc found |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | at-least-one-starts-with-http |
Doc | At least one fullfill starts-with-http |
Optional | true |
Type | url |
Doc | http/https/ws/wss/ipfs url, confrom to regex /^(?:(?:((http|ws)s?|ipfs)):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | enum |
Doc | the hd path of this netowrk, default to the detected network type (cfx/eth), can be one of hd path dbid, hd path type "cfx"/"eth" or hd path value |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Optional | true |
Type | hd-path |
Doc | hd wallet derivation path without the last address_index, check https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#abstract for detail |
Optional | true |
Type | any |
Doc | :any no doc found |
wallet_getBalanceโ
Enhanced version of cfx_getBalance
supports balance tracker.
Check the parameter for detail.
Parameters
๐ฅTryType | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | epoch-tag |
Doc | one of latest pending or earliest, default to latest |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | base32-user-address |
Doc | Base32 user address |
Type | epoch-tag-no-mined |
Doc | one of latest_finalized, latest_confirmed, latest_state, latest_checkpoint, earliest or null, default to latest_state |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | base32-user-address |
Doc | Base32 user address |
Type | = |
Doc | := no doc found |
Type | base32-contract-address |
Doc | Base32 contract address |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | = |
Doc | := no doc found |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
wallet_getBlockTimeโ
Return the approximate block time of current network
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
wallet_getBlockchainExplorerUrlโ
Helper method to generate address/contract/token/tx block explorer url of current network
Parameters
๐ฅTryType | base32-user-address |
Doc | Base32 user address |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | base32-contract-address |
Doc | Base32 contract address |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | base32-contract-address |
Doc | Base32 contract address |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | bytes-32 |
Doc | 32 hex encoded bytes, confrom to regex /^0x[0-9a-f]{64}$/ |
Optional | true |
wallet_getFluentMetadataโ
Return the metadata of fluent wallet.
Currently only version
is included.
Parameters
๐ฅTryType | undefined |
Doc | javascript undefined |
Type | nil |
Doc | javascript null or cljs nil |
Type | vector? |
Doc | vector? no doc found |
Type | empty? |
Doc | empty? no doc found |
wallet_requestPermissionsโ
Request permissions from user.
Since cfx_accounts
is the only permission currently.
It's automatically called in cfx_requestAccounts
Parameters
๐ฅTryType | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Type | empty? |
Doc | alias for wallet_account |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Type | empty? |
Doc | alias for wallet_account |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Type | dbid |
Doc | database id, positive integer |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Type | empty? |
Doc | alias for wallet_account |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Type | empty? |
Doc | alias for wallet_account |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Type | dbid |
Doc | database id, positive integer |
Type | dbid |
Doc | database id, positive integer |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Type | empty? |
Doc | alias for wallet_account |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Type | empty? |
Doc | alias for wallet_account |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Optional | true |
Type | map? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | empty? |
Doc | permission for basic rpc methods that do not request user address or signature, eg. cfx_epochNumber, eth_blockNumber, wallet_generatePrivateKey, this permission is added by default |
Optional | true |
Type | map? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Conflux core space mainnet address on other network |
Optional | true |
Type | map? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | empty? |
Doc | permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | alias for wallet_account |
Optional | true |
Type | empty? |
Doc | alias for wallet_account |
Optional | true |
Type | map? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Type | empty? |
Doc | permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4 |
Type | dbid |
Doc | database id, positive integer |
wallet_sendTransactionโ
Request user to sign a transaction and broadcast it.
Use the corresponding cfx/eth rpc depends on current network.
Return the result of cfx/eth_sendRawTransaction
.
Note: nonce
is ignored.
Parameters
๐ฅTryType | base32-user-address |
Doc | Base32 user address |
Type | base32-address |
Doc | Base32 address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Type | base32-user-address |
Doc | Base32 user address |
Type | base32-address |
Doc | Base32 address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | byte |
Doc | hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/ |
Optional | true |
Type | = |
Doc | EIP 2718 Type |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | byte |
Doc | hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/ |
Optional | true |
Type | = |
Doc | EIP 2718 Type |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | hash-32 |
Doc | 32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/ |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | byte |
Doc | hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/ |
Optional | true |
Type | = |
Doc | EIP 2718 Type |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | hash-32 |
Doc | 32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/ |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | byte |
Doc | hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/ |
Optional | true |
Type | = |
Doc | EIP 2718 Type |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | byte |
Doc | hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/ |
Optional | true |
Type | = |
Doc | EIP 2718 Type |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | hash-32 |
Doc | 32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/ |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | byte |
Doc | hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/ |
Optional | true |
Type | = |
Doc | EIP 2718 Type |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | bytes |
Doc | hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/ |
Optional | true |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Optional | true |
Type | hash-32 |
Doc | 32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/ |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Optional | true |
wallet_switchConfluxChainโ
Request user to switch to a targeet chain.
Check the parameter for detail.
Parameters
๐ฅTryType | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | dbid |
Doc | database id, positive integer |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
wallet_switchEthereumChainโ
No doc available
Parameters
๐ฅTryType | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
Type | dbid |
Doc | database id, positive integer |
Type | uint |
Doc | hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/ |
wallet_validateMnemonicโ
Helper method to validate if a string is a mnemonic.
Parameters
๐ฅTryType | string? |
Doc | string |
wallet_validatePrivateKeyโ
Helper method to validate if a string is a pk.
Parameters
๐ฅTryType | string? |
Doc | string |
wallet_watchAssetโ
Request user to add a token into the wallet.
Check the parameter for detail.
Parameters
๐ฅTryType | enum |
Doc | enum |
Type | base32-contract-address |
Doc | Base32 contract address |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | regex |
Doc | :re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/ |
Type | string |
Doc | string |
Type | pos-int? |
Doc | positive integer |
Type | url |
Doc | http/https url, confrom to regex /^(?:(?:https?):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | dbid |
Doc | database id, positive integer |
Type | enum |
Doc | enum |
Type | base32-contract-address |
Doc | Base32 contract address |
Type | ethHexAddress |
Doc | 0x-prefixed address, checksummed or single case address |
Type | regex |
Doc | :re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/ |
Type | string |
Doc | string |
Type | pos-int? |
Doc | positive integer |
Type | url |
Doc | http/https url, confrom to regex /^(?:(?:https?):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?\.?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i |
Optional | true |
Type | dbid |
Doc | database id, positive integer |