Code Monkey home page Code Monkey logo

api-arbs-example's People

Contributors

siong1987 avatar zhengyutay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-arbs-example's Issues

How to fix?

Error: bad secret key size
at Function.fromSecretKey (C:\Users\crens\Downloads\api-arbs-example-main\node_modules@solana\web3.js\lib\index.cjs.js:8166:13)
at file:///C:/Users/crens/Downloads/api-arbs-example-main/index.mjs:26:11
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)

node unexpectedly exits

node stops working after hours of running, i've tried to trace , but no signal of what did happen. Ubuntu 20.04.4 LTS, node v16.14.0.

QUESTION: How do I use this on the devnet?

How do I use this on the devnet?

I can't seem to get it to work for a SOL wallet I have funds in.

I keep getting the following error on the SOL block explorer:

#2
Associated Token Program Instruction
> Program log: Transfer 2039280 lamports to the associated token account
> Invoking System Program
  > Program returned success
> Program log: Allocate space for the associated token account
> Invoking System Program
  > Program returned success
> Program log: Assign the associated token account to the SPL Token program
> Invoking System Program
  > Program returned success
> Program log: Initialize the associated token account
> Invoking Token Program
  > Program log: Instruction: InitializeAccount
  > Program log: Error: IncorrectProgramId
  > Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2796 of 179576 compute units
  > Program returned error: incorrect program id for instruction
> Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 23220 of 200000 compute units
> Runtime error: incorrect program id for instruction

Edit:

I couldn't get the rpc endpoint the was originally in the repo to work so I tried this:

const connection = new Connection("https://api.devnet.solana.com");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.