Installation
Magic interacts with the Near blockchain via Magic’s extension NPM package@magic-ext/near
. The Near extension also lets you interact with the blockchain using methods from near-api-js.
Initialization
JavaScript
Common Methods
Sign Transaction
To sign a standard Near blockchain transaction, you can call themagic.near.signTransaction
method to get the signature and raw transaction then send to blockchain by yourself.
JavaScript