# Bytom2.0 API更新

这里只进行API更新说明,具体API内容请参考API章节

# 保留的API

该部分基本保留的Bytom1.0的API接口,未做改动。

  • create-key
  • list-keys
  • update-key-alias
  • delete-key
  • check-key-password
  • reset-key-password
  • create-account
  • list-accounts
  • update-account-alias
  • delete-account
  • create-account-receiver
  • list-addresses
  • validate-address
  • get-mining-address
  • set-mining-address
  • list-pubkeys
  • create-asset
  • get-asset
  • list-assets
  • update-asset-alias
  • list-balances
  • list-unspent-outputs
  • backup-wallet
  • restore-wallet
  • rescan-wallet
  • recovery-wallet
  • wallet-info
  • sign-message
  • decode-program
  • get-transaction
  • list-transactions
  • build-transaction
  • build-chain-transactions
  • sign-transaction
  • sign-transactions
  • submit-transaction
  • submit-transactions
  • estimate-transaction-gas
  • create-access-token
  • list-access-tokens
  • delete-access-token
  • check-access-token
  • create-transaction-feed
  • get-transaction-feed
  • list-transaction-feeds
  • delete-transaction-feed
  • update-transaction-feed
  • get-unconfirmed-transaction
  • list-unconfirmed-transactions
  • decode-raw-transaction
  • get-block-count
  • get-block-hash
  • get-block
  • get-block-header
  • net-info
  • is-mining
  • set-mining
  • gas-rate
  • verify-message
  • list-peers
  • disconnect-peer
  • connect-peer
  • get-vote-result

# 废弃的API

Bytom2.0将不再支持以下这些接口

  • get-coinbase-arbitrary
  • set-coinbase-arbitrary
  • get-difficulty
  • get-hash-rate
  • compile
  • get-work
  • submit-work
  • get-work-json
  • submit-work-json

# 新增的API

Bytom2.0新增的接口

  • list-account-votes
  • get-vote-result
  • create-contract
  • update-contract-alias
  • get-contract
  • list-contracts

# 更新的API

Bytom2.0沿用相同的名称,但接口的参数和返回值有一定修改

  • net-info
上次更新: 7/28/2021, 5:47:49 PM