Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bitcore] Solana Support #3829

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

[Bitcore] Solana Support #3829

wants to merge 26 commits into from

Conversation

leolambo
Copy link
Contributor

Adds Solana support to bitcode-node, bitcore-wallet-service, bitcore-wallet-client, and crypto-wallet-core, and limited bitcore-client.


Notes:

Account Creation

  • Similarly to XRP, Solana accounts have to be initialized with a small amount of SOL to satisfy the rent requirement.
  • You can pass createAcccount as a txp.category to generate an account creation tx
  • You can hit the rent endpoint in bitcore-node , /api/SOL/:network/rent/:space, to determine how much is needed given the space in bytes required for the account. (200 is enough for most normal accounts)

Addresses

  • Solana requires a private key in order to derive additional addresses given a seed phrase

Nonce

  • Nonce’s are represented as transaction signatures/ ids as opposed to numbers on EVM chains
  • In order to use a specified nonce for a transaction, a nonce account must be created. This account works similarly to how a normal Solana account except its main goal is keep track of the next nonce for its parent account.
  • You can pass createAcccount as a txp.category to generate an account creation tx

Fees

  • Solana fees can be calculated in two ways, number of signatures or with a transaction. The fee endpoint handles estimation via number of signature. The bitcore-node post endpoint /api/SOL/:network/txFee will estimate the fee for a the raw transaction provided in the request body, similar to estimateGas endpoint for EVM chains

In-Flight Follow ups: Realtime transaction updates via the new Quicknode Streams, SPL token support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants