Code Monkey home page Code Monkey logo

Comments (4)

mr-tron avatar mr-tron commented on July 24, 2024

https://testnet.tonviewer.com/transaction/da5886713fe53229dd4f8ceced7ec62890f2c1c6629bf74085bd4e1a8c8e0b95

from opentonapi.

yangyile1990 avatar yangyile1990 commented on July 24, 2024
func TestTon_GetTxById(t *testing.T) {
	client2, err := client.NewClient("https://testnet.tonapi.io")
	require.NoError(t, err)
	txid := "da5886713fe53229dd4f8ceced7ec62890f2c1c6629bf74085bd4e1a8c8e0b95"
	transaction, err := client2.GetBlockchainTransaction(context.Background(), client.GetBlockchainTransactionParams{
		TransactionID: txid,
	})
	t.Log(cjson.NeatString(transaction))
}

the transaction is nil.
the err is code 404: {Error:entity not found}

from opentonapi.

yangyile1990 avatar yangyile1990 commented on July 24, 2024
func TestTon_GetTxById01(t *testing.T) {
	client2, err := client.NewClient("https://tonapi.io")
	require.NoError(t, err)
	txid := "4b47fdce950797521080d49b2a310e3d4aa80e5fd0bde44e6cdd71c5ef81ee08"
	transaction, err := client2.GetBlockchainTransaction(context.Background(), client.GetBlockchainTransactionParams{
		TransactionID: txid,
	})
	require.NoError(t, err)
	t.Log(cjson.NeatString(transaction))
}

but this is ok.

from opentonapi.

yangyile1990 avatar yangyile1990 commented on July 24, 2024

func (w *Wallet) SendV2(
ctx context.Context,
waitingConfirmation time.Duration,
messages ...Sendable,
) (ton.Bits256, error)

after exec this I get a hash da5886713fe53229dd4f8ceced7ec62890f2c1c6629bf74085bd4e1a8c8e0b95

while the hash is not tx hash. (can not search by /v2/blockchain/transactions/)

but is bb4f07ec147756fe3c1ef57d7397f6f19e4cd12869be0e96940a6f91c703bed4

https://testnet.tonviewer.com/transaction/da5886713fe53229dd4f8ceced7ec62890f2c1c6629bf74085bd4e1a8c8e0b95

why?

how to use da5886713fe53229dd4f8ceced7ec62890f2c1c6629bf74085bd4e1a8c8e0b95 get bb4f07ec147756fe3c1ef57d7397f6f19e4cd12869be0e96940a6f91c703bed4

from opentonapi.

Related Issues (20)

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.