I am trying to get last 20-50 transactions from solana using node.js via solidity/web3.js .
I can get minimal info using getSignaturesForAddress.
Is there a way to get program log, fee and other information ?
Cheers.
For each signature returned by getSignaturesForAddress, you need to call getTransaction with the signature to get the full transaction information: https://docs.solana.com/developing/clients/jsonrpc-api#gettransaction
Related
So when I submit a braintree order for settlement, there will/can be multiple state changes until I get my money. It can settle, stay in settling, get declined, and so on.
How can I get this information without having to call their API constantly? Is there some kind of webhook for that? Because in my tests, I only get updates for disbursements, which is (if I understood it correctly) basically the last step of the whole transaction.
There are webhooks for some events, but not for specifically when a transaction changes status.
You can, however, use the Search API to create a script or cron job that checks for status changes over a period of time.
If you have additional questions about webhooks or using the API, contact Support.
I need a help in implementing of paytm payment gateway. i am implementing the gateway in laravel and i have coded it correctly and i have no errors and the sandbox keys are working fine and i am getting the responses also. My Issue is, I need to get the details of a transaction with the transaction ID/TXNID,
I've gone through the doc and found this [https://developer.paytm.com/docs/transaction-status-api/][1]
found almost what i can achieve, But It's getting the parameter of ORDER_ID Not TXN_ID, Is there any way get the details of transaction via Transaction ID.
Thank you.
There is no such api to get the status of payment via transaction id. Kindly use ORDERID which you sent in the request parameter at the time of transaction..
I have recently converted a trial account into a paid starter package and, since I've been assigned a long number, my attempts to send messages via the HTTP API have failed with the following messages in the Message Reports console:
An error occurred while attempting to route the message
Routing error (status 9)
I have confirmed that my username, password, and api id are entered correctly and that the long number has been matched to the active API. I've tried the "Valid Sample Code" provided on the API management console, all with the same result. Below are a few failed message ids if that's helpful for anyone on the Clickatell team.
6d7868662782cfd7d1708996bca066b1
4f837467ed535521ef39d9d885f121f9
2be08f4663a3d9d7cf2e5b9e9cad2d5f
For what it's worth, my trial account worked fine and as expected, so I'm fairly certain that this is not (obvious) user error on my part. I also upgraded a few hours ago; I'm not sure if there is a wait period between account activation and functional service. Thanks for any help on this.
Have you tried setting mo=1 and using your long number as your sender id from=123456789?
make sure you dont add any programming symbols in the text message. i had an exclamation mark and it gave me a status 9 error.
http://api.clickatell.com/http/sendmsg?api_id=xxxx&user=xxxx&from=13055140341&mo=1&password=xxxx&to=xxxx&text=xxxx
For what it's worth, I encountered a very similar problem with the REST API. It also requires the undocumented "mo=1" and "from=[your long number]" fields to be included.
Also, in the FAQ, they have "MO=1" but in actuality, it has to be a lower-case.
From OP:
Clickatell support responded with the following advice that resolved my problem. I also changed the password on my API key during the process which seemed to be part of the issue.
http://api.clickatell.com/http/sendmsg?api_id=xxxx&user=xxxx&from=13055140341&mo=1&password=xxxx&to=xxxx&text=xxxx
"from" is your long number, and because I'm using 2 way messaging , mo=1 needed to be set also. It would have been helpful if this were in the exemplary code provided on the api info and help section, but alas, I had to go through support to get my answer. It took about 2 business days for the response, but they were helpful
Is there a way to get presence info of each sinch user (sinch sdk, user online/offline)?
for example, I would not want to make a voip call to somebody who is not online currently,
cause it takes too much time for Sinch to find out whether the call can be made or not.
Currently, it is not possible to query for a user's capabilities before placing a call. Instead, an error specifying the user has no call capability will be returned when calling that particular user.
Is it possible to get a Yammer Message (JSON) By ID
It seems that you should be able to do this:
https://www.yammer.com/api/v1/messages.json?message_id=424641330
If you do this, it returns XML not JSON:
https://www.yammer.com/api/v1/messages/424641330
HELP!
If you want the specific message in json without searching the thread, just use
https://www.yammer.com/api/v1/messages/[:id].json
So in your case,
https://www.yammer.com/api/v1/messages/424641330.json
You can get a specific message by fetching that thread using thread id.
Use this:
https://www.yammer.com/api/v1/threads/[:id].json
This will get the required thread with the messages in JSON form.
The endpoint you are trying to access is basically used to manipulate messages, i.e. creating or deleting a message.
I hope that helps