Skip to content
Discussion options

You must be logged in to vote

You can call 0x1::primary_fungible_store::create_primary_store if you're looking for a fungible asset, but it's not an entry function on it's own.

Additionally, 0x1::primary_fungible_store::transfer will create the primary fungible store, similar to coin.

    const metadataAddress = "0x12345";
    const recipientAddress = "0x1337";
    const amount = 0;

    const txn = await aptos.transaction.build.simple({
        sender: account.accountAddress,
        data: {
            function: "0x1::primary_fungible_store::transfer",
            typeArguments: ["0x1::object::ObjectCore"],
            functionArguments: [metadataAddress, recipientAddress, amount],
        }
    });

Does that answer…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@unbound26z
Comment options

@peacein2022
Comment options

@kshitijc1506
Comment options

Answer selected by gregnazario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ts-sdk Questions related to the TypeScript SDK fungible-assets Questions related to the fungible asset standard
4 participants