Adding Advanced blockchain
Last updated
Last updated
TokenPocket wallet now supports adding EVM, Polkadot, and EOSIO technology blockchain through configuration. This document is for project parties who need to integrate their blockchain to TokenPocket. First of all, the blockchain must be EVM, Polkadot, or EOSIO, and projects need to provide information such as nodes, browsers, token information and transaction record services as described in this document, and finally, after reviewed by the TokenPocket official personnel, the blockchain can be quickly integrated to the TokenPocket wallet.
The Advanced blockchain of TokenPocket wallet provides users with rich functions and experiences. Some common functions include displaying a list of supported blockchain, native currency and non-native currency, token price, popular token picklist, transaction records and details. As shown in the figure 1, display the list of blockchain that TokenPocket wallet supports. Users also can quickly select the blockchain in the list to create or import the wallet for asset management.
As shown in the figure, Users can view transaction records and details, and quickly add tokens through the popular Token list.
The above shows some common functions of the Advanced blockchain of TokenPocket wallet. For more functions, please download TokenPocket for experience. The Advanced blockchain provides users with a very good experience. The next chapter will explain how the blockchain project party submits the Advanced blockchain to the TokenPocket wallet.
This section tells that in order to add the blockchain to the TokenPocket wallet, the blockchain project party has to provide data elements and ports. The Advanced blockchain has functions such as displaying the list of supported blockchain, native and non-native tokens, token prices, popular token picklist, transaction records and details. In order to have these functions on the TokenPocket wallet, the project party needs to provide services such as API and RPC for the corresponding functions. At present, TokenPocket wallet has supported the project party to provide corresponding services as follows:
The following describes the port services that need to be submitted respectively.
At present, TokenPocket wallet already supports the display of blockchain transaction history and details, as shown in the below:
As shown in the figure above, for the transaction records and details shown on the wallet, the project party needs to provide the port for obtaining the transaction list and details. The port standards are described below.
As can be seen from the above, in order for users to review the blockchain transaction records and have a better experience, the project party needs to submit the query transaction record service. The service is described as follows:
Get transaction records list (EVM):
Functions: get transaction record list
Method:get
url: /v1/transaction_action/universal_list
List of request parameters:
ns
namespace
string
exists only by querying data through chain id
chain_id
chain id
int
query data through namespace exists, and data together with namespace
blockchain_id
blockchain id
int
either ns + chian_id or blockchain_id can be added to the query
search
search
string
search address
address
address
string
contract_address
contract address
string
token_id
token id
int
erc721 tokenid
page
page
int
0
count
count
int
20
sort
sort
string
desc
fork
whether the blockchain is forked
int
UnFork = 0 Fork = 1
type
type
int
0:all, 1:from, 2: to
response data list:
Title
title
string
Decimal
decimal
int64
Fee
fee
string
Symbol
symbol
string
Comment
remark
string
Timestamp
timestamp
int64
BlockNumber
block number
int64
TokenValue
token number
string
Gas
gas fee
string
GasPrice
gas price
string
UsedGas
gas used
string
Value
value
string
Hash
transaction hash
string
Nonce
nonce
string
BlockHash
block Hash
string
TransactionIndex
transaction index
int64(optional)
LogIndex
log index
int64(optional)
InternalIndex
internal index
string(optional)
From
from
string
To
to
string
AddrToken
token address
string
TokenId
NFT token id
string(optional)
Type
type
int64
0:native currency, 1:token
Input
input
string
InputStatus
input status
int64
Status
status
int
1: success
0: failure
2:pending
99: unkonw
ErrorMessage
failed message
string(optional)
BaseFee
base fee
string(optional)
GasTipCap
tips
string(optional)
GasFeeCap
gas fee fap
string(optional)
Examples:
Get transaction details(EVM):
Functions: Transaction details list query
Method: get
url: /v1/transaction_action/universal
List of request parameters:
ns
namespace
string
exists only by querying data through chain id
chain_id
chain id
int
query data through namespace exists, and data together with namespace
blockchain_id
blockchain id
in
either ns + chian_id or blockchain_id can be added to the query
block_hash
block hash
string
hash
hash
string
log_index
log index
int
internal_index
internal index
string
response data list:
Title
title
string
Decimal
decimal
int64
Fee
fee
string
Symbol
symbol
string
Comment
remark
string
Timestamp
timestamp
int64
BlockNumber
block number
int64
TokenValue
token number
string
Gas
gas fee
string
GasPrice
gas price
string
UsedGas
gas used
string
Value
value
string
Hash
transaction hash
string
Nonce
nonce
string
BlockHash
block Hash
string
TransactionIndex
transaction index
int64(optional)
LogIndex
log index
int64(optional)
InternalIndex
internal index
string(optional)
From
from
string
To
to
string
AddrToken
token address
string
TokenId
NFT token id
string(optional)
Type
type
int64
0:native currency, 1:token
Input
input
string
InputStatus
input status
int64
Status
status
int
1: success
0: failure
2:pending
99: unkonw
ErrorMessage
failed message
string(optional)
BaseFee
base fee
string(optional)
GasTipCap
tips
string(optional)
GasFeeCap
gas fee fap
string(optional)
Examples:
Get transaction records list (Polkadot):
Functions: Get transaction records list
Method: get
url: /v1/transaction_action/universal_list
List of request parameters:
ns
namespace
string
exists only by querying data through chain id
chain_id
chain id
int
query data through namespace exists, and data together with namespace
blockchain_id
blockchain id
int
either ns + chian_id or blockchain_id can be added to the query
search
search
string
address
address
string
contract_address
contract address
string
page
page
int
count
count
int
sort
sort
string
desc
type
type
int
0: all, 1:from, 2: to
response data list:
Title
title
string(optional)
Decimal
decimal
int64
Fee
fee
string
Tip
tip
string
Symbol
symbol
string
Comment
comment
string(optional)
Timestamp
timestamp
int64
BlockNumber
block number
int64
Value
value
string
Hash
transation hash
string
Nonce
nonce
string
CallIndex
call index
int64
From
from
string
To
to
string
AddrToken
token address
string
Input
input
string
Status
status
int
1:successor
0:failure
2:pending
99:unknow
Examples:
Get transaction details(Polkadot):
Functions: Transaction details list query
Method: get
url: /v1/transaction_action/universal
List of request parameters:
ns
namespace
string
exists only by querying data through chain id
chain_id
chain id
int
query data through namespace exists, and data together with namespace
blockchain_id
blockchain id
int
either ns + chian_id or blockchain_id can be added to the query
from
from
string
nonce
nonce
string
block_number
block number
int
call_index
call index
string
response data list:
Title
title
string(optional)
Decimal
decimal
int64
Fee
fee
string
Tip
tip
string
Symbol
symbol
string
Comment
comment
string(optional)
Timestamp
timestamp
int64
BlockNumber
block number
int64
Value
value
string
Hash
transation hash
string
Nonce
nonce
string
CallIndex
call index
int64
From
from
string
To
to
string
AddrToken
token address
string
Input
input
string
Status
status
int
1:successor
0:failure
2:pending
99:unknow
Examples:
Get transaction records list (EOSIO):
Functions: Get transaction records list
Method: get
url: /v1/transaction_action/universal_list
List of request parameters:
field
explanation
type
remark
ns
namespace
string
exists only by querying data through chain id
chain_id
chain id
int
query data through namespace exists, and data together with namespace
blockchain_id
blockchain id
int
either ns + chian_id or blockchain_id can be added to the query
search
search
string
code
code address
string
account
account
string
symbol
symbol
string
page
page
page
count
count
count
sort
sort
sort
desc
type
type
type
0: all, 1: from, 2: to
response data list:
field
explanation
type
remark
Hid
transaction id
string
ProducerBlockId
producer block id
string
Receiver
receiver
string
RecvSequence
receiver sequence
int64
Timestamp
timestamp
int64
Account
account
string
Name
name
string
From
from
string
To
to
string
BlockNum
block number
int64
Quantity
quantity
string
Count
count
string
Symbol
symbol
string
Memo
memo
string
Status
status
int64
Examples:
Get transaction details(EOSIO):
Functions: Transaction details list query
Method: get
url: /v1/transaction_action/universal
List of request parameters:
field
explanation
type
remark
ns
namespace
string
exists only by querying data through chain id
chain_id
chain id
int
query data through namespace exists, and data together with namespace
blockchain_id
blockchain id
int
either ns + chian_id or blockchain_id can be added to the query
producer_block_Id
producer block id
string
receiver
receiver
string
recv_sequence
receiver sequence
int
response data list:
field
explanation
type
remark
Hid
transaction id
string
ProducerBlockId
producer block id
string
Receiver
receiver
string
RecvSequence
receiver sequence
int64
Timestamp
timestamp
int64
Account
account
string
Name
name
string
From
from
string
To
to
string
BlockNum
block number
int64
Quantity
quantity
string
Count
count
string
Symbol
symbol
string
Memo
memo
string
Status
status
int64
Examples:
Provide information format:
The node is the request address for the wallet to initiate transactions and query price and contract information. Therefore, the project party needs to provide more than one available node. The node information is displayed in the wallet as below:
Provide information format:
The browser is a tool for querying transaction information and has a certain degree of data analysis. Therefore, it is very important for the project party to provide browsers to query transaction information. One of the uses of the browser in the wallet is shown below:
Provide information format:
Based on the descriptions in the above chapters, we can know that the transaction record service address, node information and browser information are required. The standard template of information to be submitted is as follows, please submit it following this template.
The above information needs to be submitted to networklist-org。