Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Conversation

@tanjiehui
Copy link
Contributor

@tanjiehui tanjiehui commented Jan 11, 2023

Summary

Adds code example for depositing NFT

examples % yarn deposit-nft
yarn run v1.22.19
$ ts-node -r dotenv/config depositNft.ts
depositResponse {
  type: 2,
  chainId: 5,
  nonce: 45,
  maxPriorityFeePerGas: BigNumber { _hex: '0x59682f00', _isBigNumber: true },
  maxFeePerGas: BigNumber { _hex: '0x596863a4', _isBigNumber: true },
  gasPrice: null,
  gasLimit: BigNumber { _hex: '0x01c8be', _isBigNumber: true },
  to: '0x7917eDb51ecD6CdB3F9854c3cc593F33de10c623',
  value: BigNumber { _hex: '0x00', _isBigNumber: true },
  data: '0xae1cdde60468fbbca8b615da71d2bc823314885dddab97f9dc9d595c93c087bd8299a1ea031c7813c8a3a7c84641031c30945c54c7c65200147b2b68ae8b84c2e97be4da000000000000000000000000000000000000000000000000000000000036a47a0000000000000000000000000000000000000000000000000000000000000010',
  accessList: [],
  hash: '0xcc429841a3727e7f31a3c2b4e29591b99b6fd5b2ee6116ebbeb462914945e0cf',
  v: 0,
  r: '0x07126c34f78cc08f05dbd4eec752d75f3822f8851bd8c92101e611850b1d2307',
  s: '0x144dc5ba2e7b9940cd211f286222ce015a726f052eb7b1aed565b3b8b38b799e',
  from: '0x6c660D56f4d5D926341d5D8B9A855A15095457fa',
  confirmations: 0,
  wait: [Function (anonymous)]
}
✨  Done in 5.70s.

Why the changes

Support team's project to flesh out all core-sdk code examples.

Before merging

  • For Immutable developers: Do the changes in this PR require documentation updates? Please refer to this SDK documentation guide and list links to documentation update PRs (they don't have to be merged) below (or write N/A):
    • N/A

Copy link
Contributor

@CodeSchwert CodeSchwert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM

@tanjiehui tanjiehui merged commit 4d2dc28 into main Jan 12, 2023
@tanjiehui tanjiehui deleted the add-deposit-example branch January 12, 2023 23:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants