Skip to main content

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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
array of
Typebase32-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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
object with keys
from
Typebase32-user-address
Doc

Base32 user address

to
Typebase32-address
Doc

Base32 address

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
storageLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
epochHeight
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
object with keys
from
Typebase32-user-address
Doc

Base32 user address

to
Typebase32-address
Doc

Base32 address

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
storageLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
epochHeight
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue

cfx_signTypedData_v4

Request user to sign a v4 typed data message.

Return the signature.

Note: the domain in types must be CIP23Domain

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
Typebase32-user-address
Doc

Base32 user address

Typestring?
Doc

typedDataString

๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
Typebase32-user-address
Doc

Base32 user address

Typestring?
Doc

typedDataString

eth_accounts

No doc available

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
Doc

empty? no doc found

eth_requestAccounts

No doc available

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
Doc

empty? no doc found

eth_signTypedData_v4

No doc available

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Typestring?
Doc

typedDataString

๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Typestring?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
Doc

empty? no doc found

personal_sign

Request user to personal_sign a message

Return the signature

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
Typestring?
Doc

message string to sign

๐Ÿ”ฝ
one of
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Typebase32-user-address
Doc

Base32 user address

๐Ÿ”ฝ
zero or one
Typestring?
Doc

string

๐Ÿ”ฝ
array of
Typestring?
Doc

message string to sign

๐Ÿ”ฝ
one of
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Typebase32-user-address
Doc

Base32 user address

๐Ÿ”ฝ
zero or one
Typestring?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

chainName
Typestring?
Doc

string

๐Ÿ”ฝ
: object with keys
name
Typestring?
Doc

string

๐Ÿ”ฝ
: all of
Typeregex
Doc

:re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/

Typestring
Doc

string

decimals
Type=
Doc

:= no doc found

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

๐Ÿ”ฝ
one or more
Typeurl
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

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: one of
Typeenum
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

Optionaltrue
Typedbid
Doc

database id, positive integer

Optionaltrue
Typehd-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

Optionaltrue
๐Ÿ”ฝ
zero or more
Typeany
Doc

:any no doc found

๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

chainName
Typestring?
Doc

string

๐Ÿ”ฝ
: object with keys
name
Typestring?
Doc

string

๐Ÿ”ฝ
: all of
Typeregex
Doc

:re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/

Typestring
Doc

string

decimals
Type=
Doc

:= no doc found

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

๐Ÿ”ฝ
one or more
Typeurl
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

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: one of
Typeenum
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

Optionaltrue
Typedbid
Doc

database id, positive integer

Optionaltrue
Typehd-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

Optionaltrue
๐Ÿ”ฝ
zero or more
Typeany
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

chainName
Typestring?
Doc

string

๐Ÿ”ฝ
: object with keys
name
Typestring?
Doc

string

๐Ÿ”ฝ
: all of
Typeregex
Doc

:re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/

Typestring
Doc

string

decimals
Type=
Doc

:= no doc found

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

๐Ÿ”ฝ
one or more
Typeurl
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

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: one of
Typeenum
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

Optionaltrue
Typedbid
Doc

database id, positive integer

Optionaltrue
Typehd-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

Optionaltrue
๐Ÿ”ฝ
zero or more
Typeany
Doc

:any no doc found

๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

chainName
Typestring?
Doc

string

๐Ÿ”ฝ
: object with keys
name
Typestring?
Doc

string

๐Ÿ”ฝ
: all of
Typeregex
Doc

:re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/

Typestring
Doc

string

decimals
Type=
Doc

:= no doc found

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

๐Ÿ”ฝ
one or more
Typeurl
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

๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typeat-least-one-starts-with-http
Doc

At least one fullfill starts-with-http

Optionaltrue
๐Ÿ”ฝ
one or more
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
: one of
Typeenum
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

Optionaltrue
Typedbid
Doc

database id, positive integer

Optionaltrue
Typehd-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

Optionaltrue
๐Ÿ”ฝ
zero or more
Typeany
Doc

:any no doc found

wallet_getBalance

Enhanced version of cfx_getBalance supports balance tracker.

Check the parameter for detail.

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
zero or one
๐Ÿ”ฝ
one of
Typeepoch-tag
Doc

one of latest pending or earliest, default to latest

Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

๐Ÿ”ฝ
array of
Typebase32-user-address
Doc

Base32 user address

๐Ÿ”ฝ
zero or one
๐Ÿ”ฝ
one of
Typeepoch-tag-no-mined
Doc

one of latest_finalized, latest_confirmed, latest_state, latest_checkpoint, earliest or null, default to latest_state

Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: one or more
Typebase32-user-address
Doc

Base32 user address

๐Ÿ”ฝ
: one or more
๐Ÿ”ฝ
one of
Type=
Doc

:= no doc found

Typebase32-contract-address
Doc

Base32 contract address

๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: one or more
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: one or more
๐Ÿ”ฝ
one of
Type=
Doc

:= no doc found

TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

wallet_getBlockTime

Return the approximate block time of current network

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
Doc

empty? no doc found

wallet_getBlockchainExplorerUrl

Helper method to generate address/contract/token/tx block explorer url of current network

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: zero or more
๐Ÿ”ฝ
one of
Typebase32-user-address
Doc

Base32 user address

Optionaltrue
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
๐Ÿ”ฝ
: zero or more
๐Ÿ”ฝ
one of
Typebase32-contract-address
Doc

Base32 contract address

Optionaltrue
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
๐Ÿ”ฝ
: zero or more
๐Ÿ”ฝ
one of
Typebase32-contract-address
Doc

Base32 contract address

Optionaltrue
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
๐Ÿ”ฝ
: zero or more
Typebytes-32
Doc

32 hex encoded bytes, confrom to regex /^0x[0-9a-f]{64}$/

Optionaltrue

wallet_getFluentMetadata

Return the metadata of fluent wallet.

Currently only version is included.

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
Typeundefined
Doc

javascript undefined

Typenil
Doc

javascript null or cljs nil

๐Ÿ”ฝ
all of
Typevector?
Doc

vector? no doc found

Typeempty?
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
one or more
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Typeempty?
Doc

alias for wallet_account

๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Typeempty?
Doc

alias for wallet_account

๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: one or more
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Typeempty?
Doc

alias for wallet_account

๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Typeempty?
Doc

alias for wallet_account

๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

๐Ÿ”ฝ
: zero or more
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
object with keys
siteId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: one or more
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Typeempty?
Doc

alias for wallet_account

๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Typeempty?
Doc

alias for wallet_account

๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Optionaltrue
๐Ÿ”ฝ
object with keys
๐Ÿ”ฝ
: all of
Typemap?
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

Optionaltrue
Typeempty?
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

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Conflux core space mainnet address on other network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
Typeempty?
Doc

permission for methods need user's Ethereum type address (hex address) on other(Conflux core) network

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

alias for wallet_account

Optionaltrue
Typeempty?
Doc

alias for wallet_account

Optionaltrue
๐Ÿ”ฝ
: all of
Typemap?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

Typeempty?
Doc

permission for methods that need user address or signature, eg. cfx_sendTransaction, eth_signTypedData_v4

๐Ÿ”ฝ
: one or more
Typedbid
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
object with keys
from
Typebase32-user-address
Doc

Base32 user address

to
Typebase32-address
Doc

Base32 address

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
storageLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
epochHeight
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
object with keys
from
Typebase32-user-address
Doc

Base32 user address

to
Typebase32-address
Doc

Base32 address

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
storageLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
epochHeight
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
from
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typebyte
Doc

hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/

Optionaltrue
Type=
Doc

EIP 2718 Type

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
to
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
from
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typebyte
Doc

hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/

Optionaltrue
Type=
Doc

EIP 2718 Type

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
to
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
maxPriorityFeePerGas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
maxFeePerGas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
: object with keys
address
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
storageKeys
Typehash-32
Doc

32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/

chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
from
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typebyte
Doc

hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/

Optionaltrue
Type=
Doc

EIP 2718 Type

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
to
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
: object with keys
address
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
storageKeys
Typehash-32
Doc

32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/

chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
from
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typebyte
Doc

hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/

Optionaltrue
Type=
Doc

EIP 2718 Type

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
to
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
from
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typebyte
Doc

hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/

Optionaltrue
Type=
Doc

EIP 2718 Type

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
to
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
maxPriorityFeePerGas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
maxFeePerGas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
: object with keys
address
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
storageKeys
Typehash-32
Doc

32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/

chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
object with keys
from
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typebyte
Doc

hex encoded byte, confrom to regex /^0x([0-9a-fA-F]?){1,2}$/

Optionaltrue
Type=
Doc

EIP 2718 Type

Optionaltrue
nonce
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
to
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
gas
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
gasLimit
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
value
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
data
Typebytes
Doc

hex encoded bytes, confrom to regex /^0x[0-9a-f]*$/

Optionaltrue
gasPrice
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue
๐Ÿ”ฝ
: object with keys
address
TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

Optionaltrue
storageKeys
Typehash-32
Doc

32 byte hex value, confrom to regex /^0x[0-9a-f]{64}$/

chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

Optionaltrue

wallet_switchConfluxChain

Request user to switch to a targeet chain.

Check the parameter for detail.

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

wallet_switchEthereumChain

No doc available

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
Doc

hex encoded unsigned integer, confrom to regex /^0x([1-9a-f]+[0-9a-f]*|0)$/

๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: array of
๐Ÿ”ฝ
object with keys
chainId
Typeuint
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

๐Ÿ’ฅTry
๐Ÿ”ฝ
object with keys
mnemonic
Typestring?
Doc

string

wallet_validatePrivateKey

Helper method to validate if a string is a pk.

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
object with keys
privateKey
Typestring?
Doc

string

wallet_watchAsset

Request user to add a token into the wallet.

Check the parameter for detail.

Parameters

๐Ÿ’ฅTry
๐Ÿ”ฝ
one of
๐Ÿ”ฝ
object with keys
type
Typeenum
Doc

enum

๐Ÿ”ฝ
: object with keys
๐Ÿ”ฝ
: one of
Typebase32-contract-address
Doc

Base32 contract address

TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typeregex
Doc

:re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/

Typestring
Doc

string

decimals
Typepos-int?
Doc

positive integer

image
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
object with keys
authReqId
Typedbid
Doc

database id, positive integer

๐Ÿ”ฝ
: object with keys
type
Typeenum
Doc

enum

๐Ÿ”ฝ
: object with keys
๐Ÿ”ฝ
: one of
Typebase32-contract-address
Doc

Base32 contract address

TypeethHexAddress
Doc

0x-prefixed address, checksummed or single case address

๐Ÿ”ฝ
: all of
Typeregex
Doc

:re no doc found, confrom to regex /^[a-zA-Z0-9+\-%\/$]+$/

Typestring
Doc

string

decimals
Typepos-int?
Doc

positive integer

image
Typeurl
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

Optionaltrue
๐Ÿ”ฝ
object with keys
tokenId
Typedbid
Doc

database id, positive integer