createAtomicAsset
function allows you to create a new Atomic Asset as per Arweave Tradable Atomic Asset Specification.
File
| string
: The Asset file for the Atomic Asset. For toolkit initialized for server-side usage with Irys the file should be a relative path to the file from the root of the project.CreateTradableAssetOpts
: The options for the Atomic Asset. For details on the options see the Create Tradable Asset Options section.
TradableAssetInitState
: The object containing Initial state of the Atomic Asset. It contains feilds like name, ticker, balances and claimable. For details on the options see the Tradable Asset Initial State section.DiscoverabilityTags
: The discoverability tags for the Atomic Asset as per ANS-110 Specification. Contains feilds like title, description, type and topics. For details on the options see the Discoverability Tags section.LicenseTags
: Universal Data License Tags for the Asset. By default base UDL tags will be used. For details on the options see the License Tags section.ContractIdentifierTags
: Contract Identifiers tags. use this only if you want to use a custom contract. Fo r details on the options see the Contract Identifier Tags section.boolean
: Whether to index the Atomic Asset with UCM. Defaults to true
.Tag[]
: Additional tags for the Atomic Asset. Duplicate tags will throw an error. For details on the options see the Tag section.ContractDeploy
. It has the following properties:
string
: The transaction ID of the Atomic Asset contract.string
: The transaction ID of the Atomic Asset contract source.