Account
Last updated
Last updated
Returns a list of addresses owned by client.
Parameters
None
Return Value
Type | Description |
---|---|
Example
Returns the balance of the account of given address.
Parameters
Return Value
Example
Returns code at a given address.
Parameters
Return Value
Example
Returns the number of transactions sent from an address.
Parameters
Return Value
Example
The sign method calculates a Klaytn-specific signature with:
Adding a prefix to the message makes the calculated signature recognizable as a Klaytn-specific signature. This prevents misuse where a malicious dApp signs arbitrary data (e.g. transaction) and uses the signature for impersonation.
NOTE: The address to sign with must be unlocked.
Parameters
Return Value
Example
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
Array of 20-byte DATA
Addresses owned by the client.
address
20-byte DATA
Address to check for balance.
block number or hash
QUANTITY | TAG | HASH
Integer or hexadecimal block number, or the string "earliest"
, "latest"
or "pending"
as in the default block parameter, or block hash.
QUANTITY
Integer of the current balance in peb.
20-byte DATA
Address
QUANTITY | TAG | HASH
Integer or hexadecimal block number, or the string "earliest"
, "latest"
or "pending"
as in the default block parameter, or block hash.
DATA
The code from the given address.
20-byte DATA
Address
QUANTITY | TAG | HASH
Integer or hexadecimal block number, or the string "earliest"
, "latest"
or "pending"
as in the default block parameter, or block hash.
QUANTITY
Integer of the number of transactions send from this address.
account
20-byte DATA
Address
message
N-byte DATA
Message to sign
DATA
Signature