Marmo Documentation

Marmo Documentation

  • Home
  • Docs
  • Github

›Api reference

Getting Started

  • What is Marmo?
  • Install
  • Wallets
  • Intents and Transactions

Api reference

  • Configuration reference
  • Provider reference
  • Wallet reference
  • Intent action reference
  • Intent reference
  • Signed Intent reference
Edit

Wallet reference

Wallets are used to known the address of the Marmo wallet, and to sign intents to that wallet.

Constructor

Creates a new wallet instance

Python
JavaScript
Java
from marmopy import Wallet

Wallet(private or credentials, configuration (optional))

Parameters

  1. private_key - string | Credentials: The private key to use when creating the wallet. Used to sign Intents.
  2. configuration - Config: (semi-optional) The configuration to use in order to derivate the wallet address, by default uses the global configuration, throws if not available.

Return

Wallet object used to sign Intents and obtain the wallet address.

import { Wallet } from "marmojs"

new Wallet(key, config)

Parameters

  1. private_key - string: The private key to use when creating the wallet. Used to sign Intents.
  2. configuration - Config: (semi-optional) The configuration to use in order to derivate the wallet address, by default uses the global configuration, throws if not available.

Return

Wallet object used to sign Intents and obtain the wallet address.

todo

wallet address

The address of the wallet, can receive and send funds, eth, tokens, etc.

Python
JavaScript
Java
wallet.address

Property

  • string - Address of the Marmo wallet
wallet.address

Property

  • string - Address of the Marmo wallet
todo

wallet signer

The address signing the Intents, a regultar Ethereum address derivated from the private key.

Python
JavaScript
Java
wallet.signer

Property

  • string - Address of the wallet signer
wallet.signer

Property

  • string - Address of the wallet signer
todo

wallet sign ()

Signs an Intent using the wallet

Python
JavaScript
Java
wallet.sign(intent)

Parameters

  1. Intent - Intent to sign

Returns

SignedIntent, signature with intent attached

wallet.sign(intent)

Parameters

  1. Intent - Intent to sign

Returns

SignedIntent, signature with intent attached

todo
Last updated on 2019-2-26 by Agustin Aguilar
← Provider referenceIntent action reference →
  • Constructor
  • wallet address
  • wallet signer
  • wallet sign ()
Marmo Documentation
Docs
Getting StartedCreate WalletsIntents and transactions
Community
HomeProject chat
More
GitHubStar
Copyright © 2019 Ripio Credit Network - Docs powered by Docusaurus