Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

164
Visualizações
How to get transfer signatures of 0 decimal spl tokens?

I want to get spl token's, which 0 decimal, previous owner from the last owner.

When I check solscan's transfers tab I can see which wallets it has been transferred between. But on transactions tab I can only see the transaction which we are creating token account for other addresses.

Transfer tab
Transfer tab

Transaction tab
Transaction tab

import * as anchor from "@project-serum/anchor";
const connection = new anchor.web3.Connection("https://ssc-dao.genesysgo.net/", 'confirmed');
let txs=await connection.getTransaction("SPL TOKEN ADDRESS")
txs.map((element)=>{
  console.log(element.signature);
}); // Returns signatures where transaction tab.

Hence how can I get transfer list not transaction list.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

To get the previous owner of an SPL token account, you'll need to go through a few steps:

  • Get all of the transaction signatures that reference the address of the account using getSignaturesForAddress: https://docs.solana.com/developing/clients/jsonrpc-api#getsignaturesforaddress
  • Get each of the transactions using getTransaction with jsonParsed encoding: https://docs.solana.com/developing/clients/jsonrpc-api#gettransaction
  • Check the instructions at ['result']['transaction']['instructions'] and the inner instructions at ['result']['meta']['innerInstructions'] for instruction_type: "setAuthority", and then see the signers for the old owner
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda