Closed kacpersaw closed 1 week ago
Here are the list of APIs required by Wallet application:
Network-specific data
node/nodeinfo
To get a proper HRP,
First genesis layer & epoch size for timestampsmesh/genesistime
To calculate timestampsmesh/layerduration
To calculate timestampsNode status:
node/status
To ensure that Node is synced & can publish txsUser data:
globalstate/accountdataquery
(can be replaced with globalstate/account
)mesh/accountmeshdataquery
transaction/transactionsstate
globalstate/accountdataquery
Publishing txs:
transaction/parsetransaction
Funny thing that it may parse TX without a signature, but then it will estimate the wrong gas amount, like it may be published without a signature. So if you don't have a signature yet — put there 64 zero-bytes and verify: false
:)
This statement is valid for gRPC as well.transaction/submittransaction
All of them already exist and should work via JSON RPC (I haven't tested all of them yet). So I'm using them now, and propose to focus on endpoints that consume too much resources or are unsafe.
API is implemented and exposed on https://mainnet-api-docs.spacemesh.network/index.html
Description
The ask is to prepare new schema for new improved API v2.
List of endpoints required for now (spec is still in progress):